const { fixBabelImports, addLessLoader, override, addWebpackAlias } = require('customize-cra')
const path = require('path')
const resolve = dir => path.resolve(__dirname, dir)
module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd',
    style: true,
    libraryDirectory: 'es'
  }),
  addLessLoader({
    lessOptions: {
      javascriptEnabled: true
    }
  }),
  addWebpackAlias({
    '@': resolve('src')
  })
)
